package com.example.demo.utils;

import java.math.BigDecimal;

/**
 * zTree返回对象
 */
public class ZTreeUtil {

    private BigDecimal id;
    private BigDecimal pId;
    private String name;
    private Boolean open;


    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    public BigDecimal getpId() {
        return pId;
    }

    public void setpId(BigDecimal pId) {
        this.pId = pId;
    }

    public BigDecimal getId() {
        return id;
    }

    public void setId(BigDecimal id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ZTreeUtil(BigDecimal id, BigDecimal pId, String name, Boolean open) {
        this.id = id;
        this.pId = pId;
        this.name = name;
        this.open = open;
    }

    @Override
    public String toString() {
        return "ZTreeUtil{" +
                "id=" + id +
                ", pId=" + pId +
                ", name='" + name + '\'' +
                ", open=" + open +
                '}';
    }
}
